package com.whisper.common.exception.argument;

import com.whisper.common.exception.base.BaseException;

import static com.whisper.common.constant.ErrorCodeConstants.ARGUMENT_EXCEPTION;

/**
 * 参数存在异常
 *
 * @author whisper
 */
public class ArgumentException extends BaseException {

    private static final long serialVersionUID = 1L;

    public ArgumentException(String msg, Object[] args)
    {
        super(ARGUMENT_EXCEPTION, null, args, msg);
    }

    public ArgumentException(String code, String msg, Object[] args)
    {
        super(ARGUMENT_EXCEPTION, code, args, msg);
    }

    public ArgumentException(String code, String msg)
    {
        super(ARGUMENT_EXCEPTION, code, null, msg);
    }
}
